import http from "@/utils/request.js"

//一键登入

export const oneKeyLoginApi = phone => http.get('/users/onekeyLogin', {
	params: {
		phone
	}
})

//常规登入

export const loginApi = (username, password) => http.post('/users/login', { username, password })

//修改用户信息

export const updateUserApi = (params) => http.post('/users/updateUser', params)